home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / icon tools / swazinfo / swazinfo.i < prev    next >
Text File  |  1996-04-07  |  2KB  |  79 lines

  1. ;**************************************************************
  2. ;
  3. ; $VER: SwazInfo Include 1.0 Copyright ©1994 David Swasbrook
  4. ; $TIM: Last updated on Fri Jan 28 21:50:28 1994
  5. ; $UID: n/a
  6. ; $REL: n/a
  7. ; $COM: SwazInfo include file
  8. ;**************************************************************
  9.  
  10.  
  11. ;
  12. ; This structure may be obtained as a semaphore of the name "SwazInfo"
  13. ;
  14. ; NOTE
  15. ;     If you are modifying this structure (only sis_OpenCount should be
  16. ;     modified), you should only do this inside a ObtainSemaphore()
  17. ;     ReleaseSemaphore() pair.
  18. ;
  19.  
  20.  STRUCTURE SwazInfoSem,SS_SIZE
  21.      ;--------------------------------------------------------------
  22.      ;
  23.      ; Flags and reserved fields
  24.      ;
  25.     UBYTE    sis_Flags
  26.     STRUCT    sis_Pad,3
  27.      ;--------------------------------------------------------------
  28.      ;
  29.      ; Version and revision numbers.
  30.      ;
  31.     UWORD    sis_Version
  32.     UWORD    sis_Revision
  33.     UWORD    sis_Update
  34.  
  35.      ;--------------------------------------------------------------
  36.      ;
  37.      ; sis_OpenCount is used as a locking mechanism for SwazInfo so
  38.      ; it cannot go away.
  39.      ;
  40.     ULONG    sis_OpenCount
  41.  
  42.      ;--------------------------------------------------------------
  43.      ;
  44.      ; These fields contain pointers to strings which contain the
  45.      ; version, copyright information etc about SwazInfo
  46.      ;
  47.     STRPTR    sis_VersionString
  48.     STRPTR    sis_TimeString
  49.     STRPTR    sis_UserInfo
  50.     STRPTR    sis_ReleaseInfo
  51.     STRPTR    sis_Comment
  52.  
  53.      ;--------------------------------------------------------------
  54.      ;
  55.      ; This is a hook to the WBInfo() routine used by SwazInfo as a
  56.      ; replacement for workbench.library/WBInfo. It follows the same
  57.      ; calling parameters etc.
  58.      ;
  59.      ; Example - Calling SwazInfo/WBInfo() from assembler:
  60.      ;
  61.      ;    move.l    SwazInfoBase,a6
  62.      ;    jsr    sis_WBInfo(a6)
  63.      ;
  64.     STRUCT    sis_WBInfo,LIB_VECTSIZE
  65.  
  66.      ;--------------------------------------------------------------
  67.      ;
  68.      ; This structure may be extended without notice :)
  69.      ;
  70.     LABEL    sis_SIZEOF
  71.  
  72.  
  73. *
  74. * Flags for sis_Flags
  75.  
  76. sisB_Public    EQU 0
  77. sisF_Public    EQU 1<<sisB_Public
  78.  
  79.